<template>
    <div id="main">
            品牌名称:<input type="text" v-model="msg" @keydown.enter="kk"> <button @click="f">恢复全部</button>
        </div>
</template>

<script>
export default{
    data(){
        return {
            msg:"",
            dd:1
        }
    },
    methods:{
        kk(){
            this.$bus.$emit("git",this.msg)
            console.log(1)
        },
        f(){
            this.$bus.$emit("gt",this.dd)
            
        }
    }
}

</script>

<style>
#main {
            margin-bottom: 20px;
            border: 2px solid;
            width: 596px;
        }
</style>